#pragma once

class CProgressDlg : public CDialogEx
{
public:
    CProgressDlg();

    // Dialog Data
    enum { IDD = IDD_PROGRESS_DLG };

    void SetTextMessage( LPCSTR lpszText, int iProg = 0 );
    void SetProgress( int iProg );

    void CloseDialog();

protected:
    DWORD   m_dwNativeThreadID;

    virtual BOOL OnInitDialog();
    virtual void OnOk();
    virtual void OnCancel();
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    
    // Implementation
protected:
    afx_msg LRESULT OnAppendString( WPARAM wParam, LPARAM lParam );

    DECLARE_MESSAGE_MAP()
};